New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comment seems not searchable #120
Comments
Anybody there ? Do I misconfig something or that is exectly how things going for the comments of the discussion? If so, what should I do to make those comments searchable? |
Comments should be searchable (automatically), I don't know why it doesn't work for you. Are you using the current version of the discussion plugin? Does the search for the content of these pages work? I can't reproduce your problem, in my DokuWiki installation I can search for words that are (only) in the comments. |
Hi michtux, |
Oki...I found reason...it looks like that only the english words in commends are searchable. I did a test like writing a reply using both english and chinese charcters , when I searched by those english words dokuwiki gave me a perfect result, but it found nothing when I use any chinese word as a keyword :( But most of those articles are in Chinese, what could I do to fix that problem? |
The comments are stored in an extra file and not in the page itself and added to the search by the discussion plugin. However for the search index it should be as if the comments were in the page itself. I don't know why chinese words don't work. Can you search for chinese words in the page itself? |
Yeah,works for any chinese word contained page. @@! |
"谢谢",here you can take this chinese word for testing. BTW,the word means "Thank you". :) |
Okay, I found the problem. This is actually a bug of DokuWiki that can't be solved in the discussion plugin without replacing the whole search function. I've opened a bug report in the DokuWiki bug tracker. Basically what happens is that DokuWiki indexes this word as two words and also splits the search query into two words/a phrase. As DokuWiki doesn't store in the index if these words actually occur together, it checks against the page content (and not the content of the comments) if they appear together. If you search for just one of the two symbols or put a space between them, you'll also get results for comments. I'll have a look at this problem in DokuWiki itself during our bug hunting day this saturday. |
I tried again using one chinese word with spaces between each characters and yes, you're right.I thought it's because the chinese words were encoded in UTF-8 so that the doku's seach engine could not deal with the chinese key words in search box...Ok,anyhow I'm so glad to see that the problem was confirmed by someone. Thank you michitux ! So ...... seems the only thing I can do now is waiting for the new version of Dokuwiki ?! Again, appreciate your help so much! |
This is fixed in DokuWiki as well. |
Hi all,
Now I met a very interest problem about this plugin.It seems that the comments below the tag
~~DISCUSSION~~
are not searchable,which means , if I use any word contained in the comments as a key word I will get nothing expected returned by dokuwiki. Can someone give a hand ? Because it's really make sense to me to be able to find those comments through the searching.The text was updated successfully, but these errors were encountered: